package com.qf.base.service.impl;

import com.qf.base.domain.BaseCarrier;
import com.qf.base.mapper.BaseCarrierMapper;
import com.qf.base.mapper.BaseCustomerMapper;
import com.qf.base.service.IBaseCarrierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- ONE PIECE ---
 *
 * @author yangjiangcheng
 * @date 2025/9/2
 * @desc
 */
@Service
public class BaseCarrierServiceImpl implements IBaseCarrierService {
    @Autowired
    private BaseCarrierMapper baseCarrierMapper;
    @Override
    public List<BaseCarrier> selectCarrierList(BaseCarrier carrier) {
        return baseCarrierMapper.selectCarrierList(carrier);
    }

    @Override
    public int insertCarrier(BaseCarrier carrier) {
        return baseCarrierMapper.insertCarrier(carrier);
    }

    @Override
    public int updateCarrier(BaseCarrier carrier) {
        return baseCarrierMapper.updateCarrier(carrier);
    }

    @Override
    public BaseCarrier selectCarrierById(Long carrierId) {
        return baseCarrierMapper.selectCarrierById(carrierId);
    }

    @Override
    public int deleteCarrierByIds(Long[] ids) {
        return baseCarrierMapper.deleteCarrierByIds(ids);
    }
}
